import {useWindowDimensions} from "./useWindowDimensions";


function App() {
  const [width]=useWindowDimensions()
  return (
    <div style={{ height: 300,width:width,backgroundColor:'pink',fontSize:50 }}>
      {width>500 ? '我的宽度大于500': '我的宽度小于500'}
    </div>
  );
}

export default App;
